package com.engineering.elink.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.engineering.elink.dao.AreaMapper;
import com.engineering.elink.service.AreaService;

@Service
public class AreaServiceImpl implements AreaService {

	@Autowired
	private AreaMapper areaMapper;
	
	@Override
	public List<Map<String, Object>> getListByRegionId(Integer regionId) {
		return areaMapper.selectByRegionId(regionId);
	}

	@Override
	public Map<String, Object> getAreaInfo(int provinceId, int regionId,int areaId) {
		return areaMapper.selectAreaInfo(provinceId,regionId,areaId);
	}

	@Override
	public Map<String, Object> getInfo(int scId, int dcId) {
		return areaMapper.selectInfo(scId,dcId);
	}

	@Override
	public Map<String, Object> getHierInfo(int hierId) {
		return areaMapper.selectHierInfo(hierId);
	}
}
